package com.hongdee.crm.task.dto;

/**
 * Created by My on 2017/3/16.
 */
public class CarGuaranteedDTO {

    /**
     * 时间点
     */
    private String timePoint;

    /**
     * 质保年份
     */
    private String year;
    /**
     * 里程数
     */
    private String mile;
    /**
     * 质保信息的名称
     */
    private String name;
    /**
     * 质保信息的code
     */
    private String code;

    public String getTimePoint() {
        return timePoint;
    }

    public void setTimePoint(String timePoint) {
        this.timePoint = timePoint;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getMile() {
        return mile;
    }

    public void setMile(String mile) {
        this.mile = mile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof CarGuaranteedDTO) {
            CarGuaranteedDTO u = (CarGuaranteedDTO) obj;
            return this.code.equals(u.code)
                    && this.name.equals(name);
        }
        return super.equals(obj);
    }
}
